package com.example.mindadinner.dialog.dialoginformation;

import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;

import com.example.mindadinner.R;
import com.example.mindadinner.dialog.BaseDiaLog;

public class ConFirmDiaLog extends BaseDiaLog<ConFirmDiaLogConfig> {

	@Override
	public void initContentView() {
		setContentView(R.layout.notification_custom_builder);
	}

	@Override
	public void onInit(Bundle savedInstanceState) {
		final ConFirmDiaLogConfig config = getDiaLogConfig();
		final OnConFirmDiaLogListener onConFirmDiaLogListener =getDiaLogListener();
		Button confirm = (Button)findViewById(R.id.notiforcation_relayout_ok);
		Button cancel = (Button) findViewById(R.id.notiforcation_relayout_cancel);
		cancel.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				onConFirmDiaLogListener.onCancel();
				finish();
			}
		});
		confirm.setOnClickListener(new OnClickListener() {

			@Override
			public void onClick(View v) {
				onConFirmDiaLogListener.onConfirm();
				finish();
			}
		});
	}
}
